<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!-- BEGIN PAGE LEVEL PLUGINS -->
<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='${resRoot}/plugin/ace-v1.3/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>

<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/jquery-ui.custom.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.easypiechart.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.sparkline.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/flot/jquery.flot.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/flot/jquery.flot.pie.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/flot/jquery.flot.resize.min.js"></script>

<script src="${resRoot}/plugin/ace-v1.3/assets/js/prettify.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/bootbox.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.gritter.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/spin.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/fuelux/data/fuelux.tree-sample-demo-data.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/fuelux/fuelux.tree.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/jquery-ui.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.nestable.min.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.dataTables.min_1.9.4.js"></script>
<script src="${resRoot}/plugin/ace-v1.3/assets/js/jquery.dataTables.bootstrap.js"></script>


<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/ace-elements.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/ace-v1.3/assets/js/ace.min.js"></script>

<!-- ztree begin-->
<script type="text/javascript" src="${resRoot}/plugin/zTree_v3/js/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="${resRoot}/plugin/zTree_v3/js/jquery.ztree.excheck-3.5.min.js"></script>
<!-- ztree end -->
<link href="${resRoot}/plugin/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${resRoot}/plugin/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript" src="${resRoot}/js/Date.js"></script>


<link rel="stylesheet" href="${resRoot}/plugin/ace-v1.3/assets/css/ace.onpage-help.css"/>
<link rel="stylesheet" href="${resRoot}/plugin/ace-v1.3/docs/assets/js/themes/sunburst.css"/>

<script type="text/javascript" src="${resRoot }/js/nprogress.js"></script>
<link rel="stylesheet" href="${resRoot}/css/nprogress.css"/>
<link rel="stylesheet" href="${resRoot}/plugin/ace-v1.3/assets/css/chosen.css" />
<link rel="stylesheet" href="${resRoot}/plugin/ace-v1.3/assets/css/ace-part2.min.css" />
<script type="text/javascript">
    $(document).ajaxStart(function () {
        //  通用的用户体验加载进度条 20150601 Yang Zhi
        NProgress.start();

        // 禁用搜索Button变成不可用，防止重复点击 适合所有页面 20150614 Yang Zhi
        $(".btn").each(function () {
            $(this).attr("disabled", true);
        });
    });
    $(document).ajaxComplete(function () {
        NProgress.done();
        // 禁用搜索Button变成可用，防止重复点击 20150614 Yang Zhi
        $(".btn").each(function () {
            $(this).removeAttr("disabled");
        });
    });
    $.ajaxSetup({
        complete: function (XMLHttpRequest, textStatus) {
            //通过XMLHttpRequest取得响应头，sessionstatus
            var sessionstatus = XMLHttpRequest.getResponseHeader("sessionstatus");
            if (sessionstatus == "timeout") {
                alert("登录超时，请重新登录！");
                window.setTimeout(function () {
                    window.location = contextPath + "/logout.htm";
                }, 500);
                /*$.Alert("登录超时,请重新登录！", "", function () {
                 //如果超时就处理 ，指定要跳转的页面
                 window.location.replace(contextPath + "/logout.htm");
                 });*/
            }
        }
    });

    $.fn.serializeObject = function () {
        var arr = this.serializeArray();
        var valStr = {};
        $.each(arr, function (i, o) {
            var n = o.name;
            v = $.trim(o.value);
            valStr[n] = valStr[n] === undefined ? v : $.isArray(valStr[n]) ? valStr[n].concat(v) : [valStr[n], v];
        });
        return $.param(valStr);
    }

</script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
